package sevensoft.创建型模式.单例模式.懒汉式.静态内部类;

public class Singleton4 {
    private Singleton4() {
    }

    private static class SingletonHolder {
        private static final Singleton4 SINGLETON_4 = new Singleton4();
    }

    public static Singleton4 getInstance() {
        return SingletonHolder.SINGLETON_4;
    }
}
